home *** CD-ROM | disk | FTP | other *** search
- /*
- stdwin window primitives
- written by tim budd, january 1989
-
- Special version omitting windowing calls for use by
- initial image creator.
-
- Julian Barkway, May 1994.
- */
-
- # include <stdio.h>
- # include <stdlib.h>
- # include "env.h"
- # include "memory.h"
- # include "names.h"
-
- #ifdef THINKC
- #include "InitWinPrim.proto.h"
- #endif
-
- extern object trueobj, falseobj;
- extern boolean parseok;
- extern int initial;
-
- /* report a fatal system error */
- noreturn sysError(char *s1, char *s2)
- { char buffer[1024];
-
- if (initial) {
- ignore fprintf(stderr,"%s\n%s\n", s1, s2);
-
- }
- ignore abort();
- }
-
- /* report a fatal system error */
- noreturn sysWarn(char *s1, char *s2)
- { char buffer[1024];
-
- if (initial) {
- ignore fprintf(stderr,"%s\n%s\n", s1, s2);
- }
- }
-
- void compilWarn(char *selector, char *str1, char *str2)
- { char buffer[1024];
-
- if (initial) {
- ignore fprintf(stderr,"compiler warning: Method %s : %s %s\n",
- selector, str1, str2);
- }
- }
-
- void compilError(char *selector, char *str1, char *str2)
- { char buffer[1024];
-
- if (initial) {
- ignore fprintf(stderr,"compiler error: Method %s : %s %s\n",
- selector, str1, str2);
- }
- parseok = false;
- }
-
- noreturn dspMethod(char *cp, char *mp)
- {
- /*ignore fprintf(stderr,"%s %s\n", cp, mp);*/
- }
-
- void givepause(void)
- { char buffer[80];
-
- if (initial) {
- ignore fprintf(stderr,"push return to continue\n");
- ignore gets(buffer);
- }
- }
-
-
- object sysPrimitive (int primitiveNumber, object *arguments)
- {
- return newInteger (0);
- }
-
-